package com.winterchen.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.winterchen.mapper.UserDao;
import com.winterchen.mapper.YwptMapper;
import com.winterchen.model.UserDomain;
import com.winterchen.model.Ywpt;
import com.winterchen.service.UserService;
import com.winterchen.service.YwptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/8/16.
 */
@Service
public class YwptServiceImpl implements YwptService {

    @Autowired
    private YwptMapper mapper;//这里会报错，但是并不会影响


    @Override
    public int insert(Ywpt ywpt) {
        return mapper.insert(ywpt);
    }

    @Override
    public void updateEjk(Integer id) {
        mapper.updateEjkStatus(Long.valueOf(id), 1);
    }

    @Override
    public void updateXct(Integer id) {
        mapper.updateXctStatus(Long.valueOf(id), 1);
    }

    @Override
    public Ywpt selectByShouLiId(String shouLidId) {
        return mapper.selectByShouLiId(shouLidId);
    }


}
